<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>班级年级树</title>
    <link rel="stylesheet" type="text/css" href="/easyui.css">
    <link rel="stylesheet" type="text/css" href="/icon.css">
    <link rel="stylesheet" type="text/css" href="/demo.css">
    <script src="/jquery.min.js"></script>
    <script src="/jquery.easyui.min.js"></script>
    <script type="text/javascript">
        <!--获取地址栏参数-->
        function GetQueryString(name)
        {
            var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if(r!=null)return  unescape(r[2]); return null;
        }
        var tid = GetQueryString("tid");

    </script>
</head>
<body>
<script type="text/javascript">
    var date = null;
    $.post("/demoController/showNianji",{tid:tid},function(date){
        date = date;
    })
    $("#ul").tree({
//        url:"/demoController/treeDate"
        date:date
    });


</script>
<ul id="ul"></ul>
</body>
</html>